package file;

import java.io.File;

public class ListFileDemo
{
    public static void main(String[] args)
    {
        File dir = new File(".");
        if (dir.isDirectory())
        {
            File[] files = dir.listFiles();
            for (File file : files)
            {
                System.out.println(file.getAbsolutePath());
            }
        }
    }
}
